-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API rework #404
API rework #404
Conversation
256568c
to
755fad0
Compare
b05f180
to
9f6bd76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed the ownership helpers were removed in many places. Is that part of the API changes as well?
Not removed, but changed (here is almost finished work for zenoh-c eclipse-zenoh/zenoh-c#346) |
4e8ca75
to
f4d4438
Compare
@sashacmc Please change the base branch to dev/1.0.0 as protocol_changes is no longer the development branch. |
Switch query callback replies to rc
Fix some string rework issues
Add value encoding function
* fix: init encoding in put options * fix: switch z_keyexpr functions return value to _Bool * fix: z_api_alignment_test issues * fix: z_api_alignment_test memory leak * fix: missin reply encoding in z_client_test * fix: add value encoding in examples * ci: add retry to raweth test
+ Formatting fix
* feat: add zenoh-c decode bytes function * fix: rename string_from_bytes to string_convert_bytes * feat: add _z_string_from_bytes function
* refactor: reworking encoding prefix enum * feat: create net/encoding module * fix: missing include in logging module * fix: update files with encoding module * feat: rework z_encoding api * fix: remove encoding from freertos examples * feat: add encoding_loan_check function * feat: update tests & examples with new encoding * fix: bad size schema allocation * feat: add _z_encoding clear and check functions * feat: add _z_encoding copy and move functions * fix: use _z_encoding_check for errors * fix: set encoding id value * fix: missing end of file newline * fix: deactivate faulty workflow * doc: improve encoding documentation * fix: missing new encoding functions * fix: pr corrections * fix: update examples * fix: remove z_encoding_loan_check * feat: rework _z_encoding make/wrap functions * fix: update alignment test * fix: missing return statement * fix: create encoding in loop as it's moved * feat: add z_encoding_move function * fix: compilation/test issue * fix: missing z_move to alignment test * fix: remove default encoding struct
* doc: update doc comment for api functions * feat: rework z_sub_keyexpr * doc: update comments * doc: update type doc * fix: revert doc changes
Rework the API according to new Zenoh C API concept.
What should be done to finish the PR:
*_drop
is safe @sashacmcRework z_reply_data_t to owned(removed from API) @sashacmcNB: We don't touch attachment and payload parts, it will be reworked after.